using OracleInternal.Common;

namespace OracleInternal.TTC.Accessors
{
	internal class TTCIntervalTypeAccessor : Accessor
	{
		internal static int INTERVALTYPE_MAX_LENGTH = 11;

		internal TTCIntervalTypeAccessor(ColumnDescribeInfo colMetaData, MarshallingEngine marshallingEngine, bool bForBind)
			: base(colMetaData, marshallingEngine, bForBind)
		{
			if (!bForBind)
			{
				InitForDataAccess(colMetaData.m_maxLength);
			}
		}

		internal override void InitForDataAccess(int max_len)
		{
			m_internalTypeMaxLength = m_colMetaData.m_maxLength;
			m_byteLength = m_internalTypeMaxLength;
		}
	}
}
